<template>
  <div>
    <header>
      <slot name="header"></slot>
    </header>
    <main>
      具名插槽
      <slot name="main"></slot>
      默认插槽
      <!-- <slot></slot> -->
    </main>
    <footer>
      <slot name="footer"></slot>
    </footer>
    <!-- 作用域插槽 -->
    <slot :user='user'></slot>
  </div>
</template>

<script>
export default {
  props: {

  },
  data () {
    return {
      user: {
        name: 'bbb',
        age: 19
      }
    }
  }
}
</script>

<style>

</style>
